//
//  SNFoodClass.h
//  project
//
//  Created by 黄建华 on 2018/11/15.
//  Copyright © 2018年 黄建华. All rights reserved.
//

#define SN_FoodClass ([SNFoodClass sharedInstance])
#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

@interface SNFoodClass : NSObject

AS_SINGLETON(SNFoodClass)

@property (nonatomic, strong) NSMutableArray *foodArray;     // 匹配食材的临时数组
@property (nonatomic, strong) NSArray * foodUnitArray;       // 食材单位
@property (nonatomic, assign) NSInteger bmrCalor;            // 目标消耗
@property (nonatomic, strong) NSMutableArray *foodListArray; // 新增食材数组
@property (nonatomic, strong) NSString *firstCreate;         // 食谱开始日期
@property (nonatomic, assign) NSInteger foodCounts;          // 食谱天数

// 根据食物名添加食物信息
- (void)addFood:(NSDictionary *)dic withName:(NSString *)name;
// 获取食物信息
- (NSDictionary *)getFoodWithName:(NSString *)foodName;
// 转换重量单位的系数
- (CGFloat)getMultipleWithUnit:(NSString *)weightUnit;
// 同步服务器上的菜单列表
- (void)uploadFoodListForService;

@end

NS_ASSUME_NONNULL_END
